//
//  ZZGAppDelegate.m
//  WeChatPaySDK
//
//  Created by wanghuizhou21@163.com on 07/12/2018.
//  Copyright (c) 2018 wanghuizhou21@163.com. All rights reserved.
//

#import "ZZGAppDelegate.h"
#import <WXApi.h>


@implementation ZZGAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    //注册微信支付
    [WXApi registerApp:@"" universalLink:@""];
//    [[MSWechatPayHelper defaultManager] weChatPaySchemeId:MXWechatAPPID];
    return YES;
}


#pragma mark - 微信支付回调
//- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
//{
//    
//    return [[MSWechatPayHelper defaultManager] handleOpenUrl:url];
//
//}

//- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation
//{
//    return [[MSWechatPayHelper defaultManager] handleOpenUrl:url];
//
//}

// NOTE: 9.0以后使用新API接口
//- (BOOL)application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<NSString*, id> *)options
//{
//    /*
//     url.host:pay
//     wxbff3f84cc71554c1://pay/?returnKey=&ret=0
//     */
//    return [[MSWechatPayHelper defaultManager] handleOpenUrl:url];
//
//}

@end
